﻿using Magicodes.ExporterAndImporter.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin.NET.Application;
public class CustomerImportDto
{

    [ImporterHeader(Name = "客户名称")]
    [Required(ErrorMessage = "客户名称不能为空")]
    [MaxLength(50, ErrorMessage = "名称字数超出最大限制,请修改!")]
    public string CusName { get; set; }


    [ImporterHeader(Name = "客户类型")]
    [Required(ErrorMessage = "客户类型不能为空")]
    public CustomerTypeEnum Type { get; set; }


    [ImporterHeader(Name = "数量")]
    [Required(ErrorMessage = "数量不能为空")]
    public int Quantity { get; set; }


    [ImporterHeader(Name = "点数")]
    //[Required(ErrorMessage = "点数不能为空")]
    public double? Money { get; set; }

    /// <summary>
    /// 资产额
    /// </summary>
    [ImporterHeader(Name = "资产额（万）")]
    public double? PropertyMoney { get; set; }


    /// <summary>
    /// 是否出报告
    /// </summary>
    [ImporterHeader(Name = "是否出报告")]
    public bool? IsReport { get; set; } = false;


    /// <summary>
    /// 是否收款
    /// </summary>
    [ImporterHeader(Name = "是否收款")]
    public bool? IsCollected { get; set; } = false;


    /// <summary>
    /// 出报告日期
    /// </summary>
    [ImporterHeader(Name = "出报告日期")]
    public DateTime? ReportTime { get; set; }


    [ImporterHeader(Name = "收款日期")]
    public DateTime? CollectedTime { get; set; }


    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    public string? Remark { get; set; }


    [ImporterHeader(Name = "凭证备注")]
    public string? VoucherRemark { get; set; }
    

    /// <summary>
    /// 渠道对接
    /// </summary>
    [ImporterHeader(Name = "渠道对接")]
    public string? SourceChanneStr { get; set; }


    /// <summary>
    /// 渠道名称
    /// </summary>

    [ImporterHeader(Name = "渠道名称")]
    public string? SourceChanneName { get; set; }



}

